__author__ = 'Robin'
from django.contrib import admin
from django.contrib.auth.models import Permission,ContentType
class PermissionAdmin(admin.ModelAdmin):
    fieldsets = [
        ('name',               {'fields': ['name']}),
        ('Content',               {'fields': ['content_type']}),
        ('codename', {'fields': ['codename']}),
        ]
class ContentTypeAdmin(admin.ModelAdmin):
    fieldsets = [
        ('name',               {'fields': ['name']}),
        ('app_label',               {'fields': ['app_label']}),
        ('model', {'fields': ['model']}),
        ]
admin.site.register(Permission, PermissionAdmin)
admin.site.register(ContentType, ContentTypeAdmin)